
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript" src="js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="js/comment.js"></script>

</head>
<body>
	
	<button>123</button>
	
	<script type="text/javascript">
		$("button").click(function(){
			alert(123);
			var url="../../FdSell/findId.action";
			var data={"invoiceId":1};
			$.post(url,data,function(msg){
				alert(msg);
				find(msg.invoiceId);
			},"json");
		});
		
		(function find(id){
			alert(123);
			var url="../../FdSell/findId.action";
			var data={"invoiceId":1};
			$.post(url,data,function(msg){
				alert(msg);
			},"json");
		});
</script>
</body>
</html>